package priv.menguer.flyweight.service.impl;

import priv.menguer.flyweight.service.Shape;

/**
 * @Title Circle.java
 * @description TODO
 * @time 2018年10月26日 上午10:33:53
 * @author menguer@126.com
 * @version 1.0
 */
public class Circle implements Shape {
	private String color;
	private int x;
	private int y;
	private int radius;

	public Circle(String color) {
		this.color = color;
	}

	public void setX(int x) {
		this.x = x;
	}

	public void setY(int y) {
		this.y = y;
	}

	public void setRadius(int radius) {
		this.radius = radius;
	}

	@Override
	public void draw() {
		System.out.println("Circle: Draw() [Color : " + color + ", x : " + x + ", y :" + y + ", radius :" + radius);
	}
}
